import { getAsyncPage } from '@/utils/asyncComponentLoader'

export default {
    path: 'warning-center',
    name: 'WarningCenter',
    meta: {
        icon: 'exception',
        title: '异常处理中心',
    },
    children: [{
        path: 'exception-handling',
        name: 'ExceptionHandling',
        component: getAsyncPage(() => import('@/views/WarningCenter/ExceptionHandling/index.vue')),
        meta: {
            title: '异常处理',
            permission: ['view_exceptions', 'handle_exceptions']
        },
    }, {
        path: 'water-leakage-analysis',
        name: 'WaterLeakageAnalysis',
        component: getAsyncPage(() => import('@/views/WarningCenter/WaterLeakageAnalysis/index.vue')),
        meta: {
            title: '智能漏损分析',
            permission: ['view_leakage']
        }
    }
    ]
}